package me.zhao.subscribe.weatherObserver;

public class ConcreateObserver implements Observer{
	private String observerName;
	@Override
	public void update(AbstractWeatherSubject subject) {
		System.out.println(observerName + "接收到天气是："+ ((ConcreateWeatherSubject)subject).getWeatherConetent());
	}

	@Override
	public void setObserverName(String observerName) {
		this.observerName = observerName;
	}

	@Override
	public String getObserverName() {
		return observerName;
	}

}
